<html>
	<head></head>
	<body>
		<form action="" method="get">
			<input type="text" id="id_q" name="q" value="{{ query|default_if_none:"text" }}" />
			<input type="submit" value="search" />
		</form>
		
		{% if hits %}
		<ul>
			{% for hit in hits %}
			<li><a href="{{ hit.url }}"> {{hit.title}}</a></li>
			{% endfor %}
		</ul>
		{% endif %}
	</body>
</html>